<div class="centreForm">
    <h1>Edit Phone</h1>
    <c:if test="${!empty updatePhoneFailureFlag}">
        <p class="message errorMessage">Unable to update phone details.</p>
    </c:if>
    <c:if test="${!empty phoneName}">
        <p class="message confirmationMessage">${phoneName} has been updated in the database.</p>
    </c:if>
    <form method="post" action="<c:url value='/catalogue/${phone.id}/edit'/>">
        <fieldset>
            <legend>Phone Details</legend>
            <label for="manufacturer">Manufacturer:</label><input type="text" name="manufacturer" id="manufacturer" value="${phone.manufacturer}" /><br />
            <script type="text/javascript">$("input#manufacturer").focus();</script>
            <label for="make">Make:</label><input type="text" name="make" value="${phone.make}" /><br />
            <label for="price">Price:</label><input type="text" name="price" value="${phone.price}" /><br />
            <label for="weight">Weight:</label><input type="text" name="weight" value="${phone.weight}" /><br />
            <input type="submit" class="submit" value="Edit Phone" />
        </fieldset>
    </form>
</div>


